import { Controller, Inject, Get, Query } from '@midwayjs/core';
import { StoreService } from "@service/store/store.service";
import { ListStoreDTO } from "@dto/store/store.dto";

@Controller('/store')
export class StoreController {
  @Inject()
  storeService: StoreService;

  // 获取列表
  @Get('/list')
  async list(@Query() queryParams: ListStoreDTO) {
    return await this.storeService.list(queryParams);
  }
}

